package com.ai_chat.sys.service;

import com.ai_chat.sys.entity.RegistrationDTO;
import com.ai_chat.sys.entity.User;
import com.ai_chat.sys.entity.WeChatUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


public interface IUserService extends IService<User> {
    public Integer sendVerificationCode(String email);

    public Integer register(RegistrationDTO registrationDTO);

    public Map<String, Object> login(User user);

    public WeChatUser getWechatUserInfo(String code);

    public Map<String, Object> wechatTryLogin(User user);


    public User getUserTokenByUserId(Integer id);

    public void updateUserToken(User user);

    public Map<String,Object> wechatBindWithHasAccount(User user);


    public Map<String,Object> query(Integer id);
    public void editUserNickName(Integer id, String nickname);

    public void editUserPassword(Integer id, String password);

    public boolean PsEqual(Integer id, String prepassword);
}
